<?php $mess = Request::getMessages();?>
<?php if(!$mess[1] and $errors) {$mess[1] = $errors;}?>
<?php if($mess[0]):?>
	<div class="row">
		<div class="span12">
			<div class="alert alert-success fade in">
				<button type="button" class="close" data-dismiss="alert">×</button>
				<?php foreach ($mess[0] as $e):?>
					<?=$e?><br>
				<?php endforeach;?>
			</div>
		</div>
	</div>
<?php elseif($mess[1]):?>
	<div class="row">
		<div class="span12">
			<div class="alert alert-error fade in">
				<button type="button" class="close" data-dismiss="alert">×</button>
					<?php foreach ($mess[1] as $e):?>
						<?=$e?><br>
					<?php endforeach;?>
			</div>
		</div>
	</div>
<?php endif;?>